package com.giveu.signature.module.template.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.web.bind.annotation.RequestParam;

import com.giveu.common.bean.BaseEntity;
import lombok.Data;
/**
 * <p>
 * 签章模板
 * </p>
 *
 * @author zhaoruding
 * @since 2019-10-30
 */
@Data
@Table(name="sign_template_html")
public class SignTemplateHtml extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@Id
	@GeneratedValue(generator="JDBC")
	private Long id;
    /**
     * 模板编码
     */
	@Column(name="temp_code")
	private String tempCode;
    /**
     * 模板名称
     */
	@Column(name="temp_name")
	private String tempName;
    /**
     * 模板类型
     */
	@Column(name="temp_type")
	private String tempType;
    /**
     * 模板版本号
     */
	@Column(name="temp_version")
	private Integer tempVersion;
    /**
     * 模板状态(0=草稿状态,1=发布状态,-1=无效状态)
     */
	@Column(name="temp_status")
	private Integer tempStatus;
	
	@Column(name="fast_url")
	private String fastUrl;
    /**
     * html文本内容
     */
	@Column(name="html_text")
	private String htmlText;
	@Column(name="create_time")
	private Date createTime;
	@Column(name="create_user")
	private String createUser;
	@Column(name="update_time")
	private Date updateTime;
	@Column(name="update_user")
	private String updateUser;
	@Column(name="gen_model")
	private String genModel;
	
	@Transient
	private Integer maxVersion;
	@Transient
	private String paramIdstr;
	@Transient
	private List<Long> paramIds = new ArrayList<>();
	@Transient
	private List<SignTemplateParam> paramList = new ArrayList<>();
	@Transient
	private List<SignTemplateRelation> signList = new ArrayList<>();
	@Transient
	private boolean modify;
	@Transient
	private String fastPath;
	
}
